package com.lyu.travel.core.entity;

import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * @ProjectName: [travel]
 * @Package: [com.lyu.travel.core.entity]
 * @ClassName: [BaseEnntity]
 * @Description: base基类
 * @Author: [78483]
 * @CreateDate: [2020-05-16 12:37]
 * @UpdateUser: [78483]
 * @UpdateDate: [2020-05-16 12:37]
 * @UpdateRemark: [说明本次修改内容]
 * @Version: [v1.0]
 */
@Data
@MappedSuperclass  //合并
public class BaseEntity {
    @Id
    @GeneratedValue
    private Integer id;
}
